How to pass value to the parameter in Stored Procedure?
How to pass Values to the parameter in Stored Procedure in SQL Server?
I completed my post-graduation in 2013 in the engineering field. Engineering is the application of science and math to solve problems. Engineers figure out how things work and find practical uses for scientific discoveries. Scientists and inventors often get the credit for innovations that advance the human condition, but it is engineers who are instrumental in making those innovations available to the world. I love pet animals such as dogs, cats, etc.
Ashutosh Kumar Verma
08-Nov-2021Pass values to the parameter in Stored Procedure :
First, we have need to create a Stored Procedure which accept two values as parameter. So define two parameters as @FirstName and @ LastName in stored Procedure which accept the values.
Now, Execute the Stored Procedure, there are two different way to pass the values to parameters in stored procedure.
If you observe in above statement values are provide in stored procedure without providing the name of parameters. In this case values are assign to the parameters by order.
In this case order is not matter because values are providing with the parameter name when execute the stored procedure.